// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '产品工艺配方',
        name: 'processformulamainView',
        newTabEdit: false,
        url: "/processformulamainView/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductId":"","FormulaTag":"","ProductCode":"","ProductName":"","DrawNo":"","Memo":""};
    const editFormOptions = [[{"title":"产品ID","required":true,"field":"ProductId","disabled":true,"type":"number"},
                               {"dataKey":"工艺配方","data":[],"title":"配方标识","required":true,"field":"FormulaTag","type":"select"},
                               {"title":"产品编码","field":"ProductCode","type":"selectTable"}],
                              [{"title":"产品名称","field":"ProductName","disabled":true},
                               {"title":"图号","field":"DrawNo","disabled":true}],
                              [{"title":"备注","field":"Memo","colSize":12}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductId',title:'产品ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'FormulaTag',title:'配方标识',type:'string',bind:{ key:'工艺配方',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductCode',title:'产品编码',type:'string',width:120,align:'left'},
                       {field:'ProductName',title:'产品名称',type:'string',width:120,readonly:true,align:'left'},
                       {field:'DrawNo',title:'图号',type:'string',width:120,readonly:true,align:'left'},
                       {field:'UpdateUser',title:'更新用户',type:'string',width:120,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:110,require:true,align:'left'},
                       {field:'Memo',title:'备注',type:'string',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}